// 心检大厅
<template>
  <div class="app-container home">
    <!-- 搜索栏 -->
    <!-- <div></div> -->
    <!-- 内容展示 -->
    <div class="content">
      <div class="Left_box">
        <div class="slideshow">
          <el-carousel height="210px">
            <el-carousel-item v-for="item in 4" :key="item">
              <h3 class="small">{{ item }}</h3>
            </el-carousel-item>
          </el-carousel>
        </div>
        <div class="lectures">
          <div class="whatLi rooftilel">
            <div>历史讲座</div>
            <div>更多>></div>
          </div>
          <div class="whatLi" v-for="(item, index) in 10" :key="index">
            <div class="articleTilt">
              学会心理调适与压力管理，成为情绪的主人学会心理调适与压力管理，成为情绪的主人学会心理调适与压力管理，成为情绪的主人
            </div>
            <div class="timeTilt">2024-07-04</div>
          </div>
        </div>
        <div class="repository">
          <div class="knowledge">心理知识库</div>
          <div v-html="'&gt;&gt;'"></div>
        </div>
        <div class="catechism">
          <div class="whatLi rooftilel">
            <div>心灵问答</div>
            <div>我要提问</div>
          </div>
          <div>
            <!-- v-loading="loading" -->
            <el-table  :data="issueList">
              <el-table-column
                label="序号"
                key="index"
                prop="index"
                width="50"
                align="center"
              />
              <el-table-column
                label="咨询问题"
                align="center"
                key="formName"
                prop="formName"
                :show-overflow-tooltip="true"
              />

              <el-table-column
                label="咨询时间"
                align="center"
                prop="createTime"
                :show-overflow-tooltip="true"
              >
              </el-table-column>

              <el-table-column
                label="操作"
                align="center"
                class-name="small-padding fixed-width"
              >
                <template slot-scope="scope">
                  <el-button
                    size="mini"
                    type="text"
                    icon="el-icon-edit"
                    @click="reportClik(scope.row)"
                    v-hasPermi="['system:user:edit']"
                    >查看</el-button
                  >
                </template>
              </el-table-column>
            </el-table>
          </div>
        </div>
      </div>
      <div class="Right_box">
        <div class="moduleToolbar">
          <div class="consult" @click="myConsult">我要咨询</div>
        </div>
        <div class="educationalCase">
          <div class="rightBox">
            <div class="whatLi rooftilel">
              <div>抗打击教育</div>
              <div>更多>></div>
            </div>
          </div>
          <div class="rightBox">
            <div class="whatLi rooftilel">
              <div>代表性辅导案例</div>
              <div>更多>></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // 轮播图
      imgList: [{ url: "" }],
          // 遮罩层
      loading: true,
      issueList: [
        {
          index: 1,
          formName: "问题1",
          createTime: "2024-07-04",
        },
        {
          index: 2,
          formName: "问题2",
          createTime: "2024-07-04",
        },
        ,
        {
          index: 3,
          formName: "问题3",
          createTime: "2024-07-04",
        },
        ,
        {
          index: 4,
          formName: "问题4",
          createTime: "2024-07-04",
        },
        ,
        {
          index: 5,
          formName: "问题4",
          createTime: "2024-07-04",
        },
      ],
    };
  },
  mounted() {},
  created() {},
  methods: {
    myConsult(){
          this.$router.push({path:"/InternalPage/chitchat"})
          //  this.$router.push({path:"/HelloWorld"})
    },
  },
};
</script>

<style scoped lang="scss">
.content {
  display: flex;
  justify-content: space-between;
  // align-items: center;
  .Left_box {
    width: 35%;
    height: 100%;
    padding: 0 10px;

    .slideshow {
      width: 100%;
      height: 210px;
      .el-carousel__item h3 {
        color: #475669;
        font-size: 14px;
        opacity: 0.75;

        line-height: 210px;
        margin: 0;
      }

      .el-carousel__item:nth-child(2n) {
        background-color: #99a9bf;
      }

      .el-carousel__item:nth-child(2n + 1) {
        background-color: #d3dce6;
      }
    }
    .lectures {
      width: 100%;
      height: 260px;
      margin-top: 10px;
      overflow-x: hidden;
      overflow-y: scroll;
      padding: 5px 10px;
      background-color: #ddeeff;

      ::-webkit-scrollbar {
        display: none;
      }
    }

    .repository {
      width: 100%;
      height: 240px;
      margin-top: 10px;
      overflow-x: hidden;
      overflow-y: scroll;
      padding: 5px 10px;
      background-color: #ddeeff;
      .knowledge {
        color: #409eff;
        font-size: 18px;
      }
    }
    .catechism {
      width: 100%;
      height: 260px;
      margin-top: 10px;
      overflow-x: hidden;
      overflow-y: scroll;
      padding: 5px 10px;
      background-color: #ddeeff;
    }
  }
  .rooftilel {
    border-bottom: 2px solid #409eff;
    padding: 5px 5px;
    margin-bottom: 5px;
  }

  .whatLi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    .articleTilt {
      width: 78%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .timeTilt {
      width: 21%;
      text-align: right;
    }
  }
  .Right_box {
    width: 62%;
    height: 100%;
    .moduleToolbar {
      width: 100%;
      height: 480px;
      padding: 10px 10px;
      background-color: #ddeeff;
    }
    .consult{
      width: 80px;
      height: 80px;
    border: 1px solid #d3dce6;
    text-align: center;
    line-height: 80px;
    border-radius: 5px;
    }
    .educationalCase {
      width: 100%;
      height: 510px;
      margin-top: 10px;
      display: flex;
      justify-content: space-between;
      .rightBox {
        padding: 5px 10px;
        width: 48%;
        overflow-x: hidden;
        overflow-y: scroll;
        background-color: #ddeeff;
      }
    }
  }
}
</style>